const getters = {
  baseURL: state => state.app.baseURL,
  isToLogin: state => state.app.isToLogin,
  inEdition: state => state.app.inEdition,
  version: state => state.app.version,
  is_jurisdiction: state => state.app.is_jurisdiction,
  independent: state => state.app.independent,
  sidebar: state => state.app.sidebar,
  language: state => state.app.language,
  displayMap: state => state.app.displayMap,
  size: state => state.app.size,
  power: state => state.app.power,
  beforepath: state => state.app.beforepath,
  newsMessage: state => state.app.newsMessage,
  breadcrumbTitle: state => state.app.breadcrumbTitle,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  // sotreName: state => state.mystore.sotreName,
  user: state => state.user.user,
  introduction: state => state.user.introduction,
  status: state => state.user.status,
  roles: state => state.user.roles,
  routerPath: state => state.user.routerPath,
  rolesDefult: state => state.user.rolesDefult,
  setting: state => state.user.setting,
  permission_routers: state => state.permission.routers,
  index_layout: state => state.permission.INDEX_LAYOUT,
  setDiyTop: state => state.custorm.setTop,
  diyId: state => state.custorm.diy_page_id,
  addRouters: state => state.permission.addRouters,
  errorLogs: state => state.errorLog.logs,
  copyright: state => state.app.copyright,
  sitename: state => state.app.sitename,
  usersAvatar: state => state.user.usersAvatar,
  agent_id:state => state.user.agent_id,
  isGroup: state => {
    state.isGroup = state.isGroup ? state.isGroup : localStorage.getItem('isGroup') == 'true'
    return state.isGroup
  }
}

export default getters

